data-toggle= "Collapse" is added to the link for the component you want to expand or collapse. The href or data-target attribute is added to the parent component, and its value is the ID of the child component.
The following table lists the folding (Collapse) plug-ins that are used to handle the heavy scalable class:
Class
Description
instanc
Problems encountered:Recently when using the bootstrap framework to make a Web page found that under the small screen and phone screen (max-width:768px), the navigation bar can not be clicked on the navigation link, automatic folding navigation bar. Or, after you expand the navigation bar, if you do not click on the navigation link, the user will not be able to automatically collapse the navigation bar when
Bootstrap, from Twitter, is currently the most popular front-end framework. Bootstrap is based on HTML, CSS, JAVASCRIPT, it is simple and flexible, making Web development faster. Below through this article to introduce bootstrap folding (Collapse) plug-in usage examples, together to see!
A folding (
Implement the drop-down menu items and form navigation bar (two menu items, one drop-down menu and login form navigation bar) based on Bootstrap, And the bootstrap drop-down menu
As follows:
The implementation code is as follows:
A folding (Collapse) plug-in can easily fold a page area. Whether you use it to create a collapsed navigation or a content panel, it allows a lot of content options.If you want to refer to the plug-in's functionality separately, you need to refer to collapse.js, or, as mentioned in the Bootstrap Plug-in Overview chapter, you can refer to Bootstrap.js or compressed version of Bootstrap.min.js.One, usageThe f
Bootstrap drop-down menu and Bootstrap drop-down menu for the bootstrap layout component tutorial
This chapter focuses on the Bootstrap drop-down menu. The drop-down
, folding effect (collapse)Source file:Mixins/_component-animations.scss:collapse implementation to achieve folding effectJavascripts/bootstrap/collapse.js: Folding Effect implementation
1, $this. Data () Collect all data-*2, Parent Property: Specifies that the current collapse is controlled by that parent, mainly to achieve a more than one control effect, the f
Display and collapse the navigation menu effects and the accordion navigation menu
Display and fold the navigation menu effect in the accordion mode:This topic describes a code example that enables you to expand and collapse the navigation
collapsible control, add the Data property data-parent= "#selector".
"Button" class="btn Btn-primary"data-toggle="collapse"data-target="#demo">Simple Collapsible Componentsclass= "Collapse"Id="Demo">Nihil anim keffiyeh Helvetica, craft beer labore Wes Anderson cred Nesciunt sapiente ea proident. Ad vegan excepteur butcher vice Lomo. Without adding extra class. In, the collapsed content is not open
Selecting a collapsed item collapse is not commonly used in Web pages, but it is not uncommon.This is a more practical component.Collapsed item collapse only one item can be turned on by default.I. BASIC OBJECTIVESUse bootstrap to write a selection of collapsed items such as:The terms of service 2 is open when the page is opened.Click on a different collapsed ite
data-toggle= "Collapse"--indicates that the element has a folding function;The data-target--sets the element link that is pointed to when the element opens collapsed.The. collapse--is used to set elements as collapsed content.. in--sets the collapsed content to be initialized to the display state;The. panel-collapse--indicates that the element content is a collap
The reason why the menu item cannot be selected on the mobile phone end of the drop-down menu implemented based on Bootstrap is attached with a solution. The bootstrap menu item
The Bootstrap-based drop-down
Detailed description of the Bootstrap drop-down menu component and the bootstrap drop-down menu
The drop-down menu component in the bootstrap framework is an independent component. Based on different versions, its corresponding fi
The jquery Collapse is a lightweight jquery plugin for expanding and storing elements, supporting cookies for State preservation, which is what we often talk about accordion menu effects. The plug-in uses a convenient and lightweight solution to shrink the menu.
Characteristics
Persistence of
JQuery Collapse saves d
The cascade drop-down menu that Bootstrap must learn every day. The bootstrap drop-down menu
This article will introduce the custom bootstrap cascade drop-down menu. The main application scenarios include Provincial/Municipal Asso
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.